import * as api from "./modules/api";

export const apis = {
  api,
};
// 载入所有api对象
const modules: Record<string, any> = import.meta.glob("./apis/*.ts", {
  eager: true,
});

export const uris: Record<string, any> = {}

for (const path in modules) {
  const apiName = path.replace("./apis/", "").replace(".ts", "");
  uris[apiName] = modules[path].default;
}

// 接口地址
export const baseUrl = import.meta.env.VITE_URL_API;
